import * as api from '../api';
let login = {}
login.login = function (params) {
  return api.request('GET', '/sys/user/login', params);
}
login.getCaptchaImage = function (params) {
  return api.request('GET', '/api/captchaImage', params);
}
login.signOut = function (params) {
  return api.request('GET', '/sys/user/signOut', params);
}
login.getAdmin = function (params) {
  return api.request('POST', '/getAdminMessage', params);
}
login.getBoss = function (params) {
  return api.request('POST', '/getBossMessage', params);
}
login.getLeader = function (params) {
  return api.request('POST', '/getLeaderMessage', params);
}
login.getUser = function (params) {
  return api.request('POST', '/getUserMessage', params);
}
export default login
